package com.gxar.quick.ar.server.base.model.user.vo.request;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.gxar.quick.ar.server.base.model.user.vo.ExchangeCodeVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author linsy
 * @version 1.0
 * @created 2024/2/26 10:39
 */
@Data
@ApiModel("更新用户请求")
public class UpdateUserRequest {

    @ApiModelProperty("用户手机号")
    @JSONField(name = "phone")
    @JsonProperty("phone")
    @NotBlank(message = "请输入用户手机号")
    private String phone;

    @ApiModelProperty("新选择的兑换品码")
    @JSONField(name = "codes")
    @JsonProperty("codes")
    private List<ExchangeCodeVO> codes;

}
